package com.itqianfeng.smartmeeting.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itqianfeng.smartmeeting.entity.Booking;
import com.itqianfeng.smartmeeting.entity.Timeslot;
import com.itqianfeng.smartmeeting.entity.dto.BookingDTO;
import com.itqianfeng.smartmeeting.mapper.BookingMapper;
import com.itqianfeng.smartmeeting.mapper.TimeslotMapper;
import com.itqianfeng.smartmeeting.service.TimeslotService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TimeslotServiceImpl extends ServiceImpl<TimeslotMapper, Timeslot> implements TimeslotService  {
    @Autowired
    private TimeslotMapper timeslotMapper;
    @Autowired
    private BookingMapper bookingMapper;
    @Autowired
    private TimeslotService timeslotService;
    @Override
    public List<Timeslot> findByRoomId(Integer roomId, int start, int limit) {
        return timeslotMapper.findByRoomId(roomId,start,limit);
    }

}
